package com.hxy.modules.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxy.modules.activiti.annotation.ActField;
import com.hxy.modules.activiti.annotation.ActTable;
import com.hxy.modules.common.entity.ActivitiBaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商户审核
 */
@Data
@ActTable(tableName = "bus_merchants_audit",pkName="id")
public class MerchantsAuditEntity extends ActivitiBaseEntity implements Serializable {

    private String id;

    //信息提交时间
    //@ActField(name = "信息提交时间" ,fieldName = "")
    @NotEmpty(message = "信息提交时间不能为空")
    private Date creatTime;
    //营销人员
    //@ActField(name = "店铺名称" ,fieldName = "")
    @NotEmpty(message = "店铺名称不能为空")
    private String merchantName;
    //营销人员id

    private String merchantId;
    //店主姓名
    //@ActField(name = "店主姓名",fieldName = "")
    @NotEmpty(message = "店主姓名不能为空")
    private String merchantManName;
    //店主id
    private Integer merchantManId;
    //手机号
    //@ActField(name = "手机号",fieldName = "")
    @NotEmpty(message = "手机号不能为空")
    private String phoneNum;
    //店铺地址
    //@ActField(name = "店铺地址",fieldName = "")
    @NotEmpty(message = "店铺地址不能为空")
    private String storeAddress;
    //其他平台店名
   // @ActField(name = "其他平台店名",fieldName = "")
    @NotEmpty(message = "其他平台店名不能为空")
    private String otherMerchantName;
    //配送方式
    //@ActField(name = "配送方式",fieldName = "")
    @NotEmpty(message = "配送方式不能为空")
    private String modeOfDistribution;
    //商家分类
    //@ActField(name = "商家分类",fieldName = "")
    @NotEmpty(message = "商家分类不能为空")
    private String merchantGroup;
    //商家营业时间
    //@ActField(name = "商家营业时间",fieldName = "")
    @NotEmpty(message = "商家营业时间不能为空")
    private String businessHours;
    //餐盒费
    //@ActField(name = "餐盒费",fieldName = "")
    @NotEmpty(message = "餐盒费不能为空")
    private String mealsFee;
    //配送范围
    //@ActField(name = "配送范围",fieldName = "")
    @NotEmpty(message = "配送范围不能为空")
    private String deliveryArea;
    //开关店详情
    //@ActField(name = "开关店详情",fieldName = "")
    @NotEmpty(message = "开关店详情不能为空")
    private String isOpen;
    //点位
    //@ActField(name = "点位",fieldName = "")
    @NotEmpty(message = "点位不能为空")
    private String pointLocation;
    //经度
    //@ActField(name = "经度标题",fieldName = "")
    @NotEmpty(message = "经度不能为空")
    private String longitude;
    //纬度
    //@ActField(name = "纬度",fieldName = "")
    @NotEmpty(message = "纬度不能为空")
    private String latitude;
    //定位空间
    //@ActField(name = "定位空间",fieldName = "")
    @NotEmpty(message = "定位空间不能为空")
    private String locateSpace;
    //是否商家自传菜单
    //@ActField(name = "是否商家自传菜单",fieldName = "")
    @NotEmpty(message = "是否商家自传菜单不能为空")
    private String isManualMenu;
    //商家食品安全发证时间
    //@ActField(name = "商家食品安全发证时间",fieldName = "")
    @NotEmpty(message = "商家食品安全发证时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd") //入参
    private Date bfscTime;
    //商家食品安全到期时间
    //@ActField(name = "商家食品安全到期时间",fieldName = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd") //入参
    @NotEmpty(message = "商家食品安全到期时间不能为空")
    private Date bfseTime;
    //菜单照片（上传附件）
    //@ActField(name = "菜单照片",fieldName = "")
    @NotEmpty(message = "菜单照片不能为空")
    private String menuPhoto;
    //会签意见
    //@ActField(name = "会签意见",fieldName = "")
    @NotEmpty(message = "会签意见不能为空")
    private String remark;
    //门头照
    //@ActField(name = "门头照",fieldName = "")
    @NotEmpty(message = "门头照不能为空")
    private String photoPath1;
    //店内照
    //@ActField(name = "店内照",fieldName = "")
    @NotEmpty(message = "店内照不能为空")
    private String photoPath2;
    //营业执照
    //@ActField(name = "营业执照",fieldName = "")
    @NotEmpty(message = "营业执照不能为空")
    private String photoPath3;
    //食品许可证
    //@ActField(name = "食品许可证",fieldName = "")
    @NotEmpty(message = "食品许可证不能为空")
    private String photoPath4;
    //身份证正面照
    //@ActField(name = "身份证正面照",fieldName = "")
    @NotEmpty(message = "身份证正面照不能为空")
    private String photoPath5;
    //身份证反面照
    //@ActField(name = "身份证反面照",fieldName = "")
    @NotEmpty(message = "身份证反面照不能为空")
    private String photoPath6;
    //手持身份证照
    //@ActField(name = "手持身份证照",fieldName = "")
    @NotEmpty(message = "手持身份证照不能为空")
    private String photoPath7;
}
